org.eclipse.vtp.desktop.projects.core.internals
Class WebServiceSet

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.WebServiceSet
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ObjectListener, IVoiceToolsResource, IWebServiceSet

public class WebServiceSet
extends VoiceResource
implements IWebServiceSet

This is a concrete implementation of IWebServiceSet and provides the default behavior of that interface.

Since:
2.1
Version:
1.0
Author:
Lonnie Pryor

Constructor Summary
WebServiceSet(VoiceToolsDesignProject project, org.eclipse.core.resources.IFolder folder)
          Creates a new WebServiceSet with the given application project and eclipse folder resource.
 
Method Summary
 IWebService createWebService(java.lang.String name, java.net.URL wsdlFile)
          Creates a new web service folder resource with the given name.
 void deleteWebService(IWebService webService)
          Removes the given web service from this application.
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 IWebService getWebService(java.lang.String name)
          Returns the web service with the specified name.
 java.util.List getWebServices()
          Returns the list of IWebServices that are defined in this application project.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebServiceSet

public WebServiceSet(VoiceToolsDesignProject project,
                     org.eclipse.core.resources.IFolder folder)
Creates a new WebServiceSet with the given application project and eclipse folder resource.

Parameters:
project - The parent application project.
folder - The eclipse folder resource this database set represents.
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getWebServices

public java.util.List getWebServices()
Description copied from interface: IWebServiceSet
Returns the list of IWebServices that are defined in this application project.

Specified by:
getWebServices in interface IWebServiceSet
Returns:
The list of IWebServices that are defined in this application project.

getWebService

public IWebService getWebService(java.lang.String name)
Description copied from interface: IWebServiceSet
Returns the web service with the specified name.

Specified by:
getWebService in interface IWebServiceSet
Parameters:
name - The name of the web service to return.
Returns:
The web service with the specified name.

createWebService

public IWebService createWebService(java.lang.String name,
                                    java.net.URL wsdlFile)
                             throws org.eclipse.core.runtime.CoreException
Description copied from interface: IWebServiceSet
Creates a new web service folder resource with the given name. The web service will initially contain the web service port definitions.

Specified by:
createWebService in interface IWebServiceSet
Parameters:
name - The name of the web service folder resource.
wsdlFile - The WSDL resource that describes the web service.
Returns:
The newly created web service folder resource.
Throws:
org.eclipse.core.runtime.CoreException - If an error occurred during the creation of the required file or folder resources of the web service definition.

deleteWebService

public void deleteWebService(IWebService webService)
                      throws org.eclipse.core.runtime.CoreException
Description copied from interface: IWebServiceSet
Removes the given web service from this application. This will also remove all web service port definitions contained by the web service folder resource.

Specified by:
deleteWebService in interface IWebServiceSet
Parameters:
webService - The web service definition to remove.
Throws:
org.eclipse.core.runtime.CoreException - If an error occurred during the deletion of the required file or folder resources of the web service definition.